package com.lgy.httpmocktool.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class PathConfig {
    private static String home;
    private static String db;
    private static String groovy;
    @Value("${httpmocktool.data.home}")
    private void setHome(String home) {
        PathConfig.home = home;
    }
    @Value("${httpmocktool.data.db}")
    private void setDb(String db) {
        PathConfig.db = db;
    }
    @Value("${httpmocktool.data.groovy}")
    private void setGroovy(String groovy) {
        PathConfig.groovy = groovy;
    }
    public static String getHome() {return home;}
    public static String getDb() {return db;}
    public static String getGroovy() {return groovy;}
}
